package com.pro.service.imple;

import com.pro.dao.LoginRecordMapper;
import com.pro.entity.LoginRecord;
import com.pro.service.LoginRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class LoginRecordServiceImple implements LoginRecordService {
    @Autowired
    private LoginRecordMapper loginRecordMapper;

    @Override
    public List<LoginRecord> getTable(Integer page, Integer limit, Integer gid) {
        List<LoginRecord> table = loginRecordMapper.getTable(page, limit, gid);
        return table;
    }

    @Override
    public int getCounts(Integer gid) {
        int counts = loginRecordMapper.getCounts(gid);
        return counts;
    }
}
